package main

import (
	"fmt"
)

type Cat struct {
	name string
	age  int
}

func fetchChannel(ch chan Cat) {
	value := <-ch
	fmt.Printf("type: %T, value: %v\n", value, value)
}

// func main() {
// 	cat := Cat{"哈士奇", 4}
// 	ch := make(chan Cat)
// 	go fetchChannel(ch)
// 	ch <- cat
// 	time.Sleep(2 * time.Second)
// 	fmt.Println("end")
// }
